package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BBudgetStandardDao;
import com.hongxun.modules.api.entity.BBudgetStandardEntity;
import com.hongxun.modules.api.service.BBudgetStandardService;



@Service("bBudgetStandardService")
public class BBudgetStandardServiceImpl implements BBudgetStandardService {
	@Autowired
	private BBudgetStandardDao bBudgetStandardDao;
	
	@Override
	public BBudgetStandardEntity queryObject(String guid){
		return bBudgetStandardDao.queryObject(guid);
	}
	
	@Override
	public List<BBudgetStandardEntity> queryList(Map<String, Object> map){
		return bBudgetStandardDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bBudgetStandardDao.queryTotal(map);
	}
	
	@Override
	public void save(BBudgetStandardEntity bBudgetStandard){
		bBudgetStandard.setGuid(UUID.randomUUID().toString());
		bBudgetStandardDao.save(bBudgetStandard);
	}
	
	@Override
	public void update(BBudgetStandardEntity bBudgetStandard){
		bBudgetStandardDao.update(bBudgetStandard);
	}
	
	@Override
	public void delete(String guid){
		bBudgetStandardDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bBudgetStandardDao.deleteBatch(guids);
	}
	
}
